package com.qf.contract.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 合同支付表
 */
@ApiModel(description = "合同支付表")
@TableName(value = "f_contract_payment")
public class FContractPayment {
    public static final String COL_CONTRACT_PAYMENT_ID = "contract_payment_id";
    public static final String COL_CONTRACT_ID = "contract_id";
    public static final String COL_CONTRACT_PAYMENT_AMOUNT = "contract_payment_amount";
    public static final String COL_NOTES = "notes";
    public static final String COL_CONTRACT_PAYMENT_DATE = "contract_payment_date";
    public static final String COL_PAYMENT_STATUS = "payment_status";
    /**
     * 合同支付表主键
     */
    @TableId(value = "contract_payment_id", type = IdType.INPUT)
    @ApiModelProperty(value = "合同支付表主键")
    private Integer contractPaymentId;
    /**
     * 合同表外键 f_contract
     */
    @TableField(value = "contract_id")
    @ApiModelProperty(value = "合同表外键 f_contract")
    private Integer contractId;
    /**
     * 本次支付金额可以为空
     */
    @TableField(value = "contract_payment_amount")
    @ApiModelProperty(value = "本次支付金额可以为空")
    private Integer contractPaymentAmount;
    /**
     * 备注
     */
    @TableField(value = "notes")
    @ApiModelProperty(value = "变更事由可以为空")
    private String notes;
    /**
     * 支付时间
     */
    @TableField(value = "contract_payment_date")
    @ApiModelProperty(value = "支付时间")
    private Date contractPaymentDate;
    /**
     * 状态 0存在1删除
     */
    @TableField(value = "payment_status")
    @TableLogic(value = "0", delval = "1")
    @ApiModelProperty(value = "状态 0存在1删除")
    private Integer paymentStatus;

    /**
     * 获取合同支付表主键
     *
     * @return contract_payment_id - 合同支付表主键
     */
    public Integer getContractPaymentId() {
        return contractPaymentId;
    }

    /**
     * 设置合同支付表主键
     *
     * @param contractPaymentId 合同支付表主键
     */
    public void setContractPaymentId(Integer contractPaymentId) {
        this.contractPaymentId = contractPaymentId;
    }

    /**
     * 获取合同表外键 f_contract
     *
     * @return contract_id - 合同表外键 f_contract
     */
    public Integer getContractId() {
        return contractId;
    }

    /**
     * 设置合同表外键 f_contract
     *
     * @param contractId 合同表外键 f_contract
     */
    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    /**
     * 获取本次支付金额可以为空
     *
     * @return contract_payment_amount - 本次支付金额可以为空
     */
    public Integer getContractPaymentAmount() {
        return contractPaymentAmount;
    }

    /**
     * 设置本次支付金额可以为空
     *
     * @param contractPaymentAmount 本次支付金额可以为空
     */
    public void setContractPaymentAmount(Integer contractPaymentAmount) {
        this.contractPaymentAmount = contractPaymentAmount;
    }

    /**
     * 获取变更事由可以为空
     *
     * @return notes - 变更事由可以为空
     */
    public String getNotes() {
        return notes;
    }

    /**
     * 设置变更事由可以为空
     *
     * @param notes 变更事由可以为空
     */
    public void setNotes(String notes) {
        this.notes = notes;
    }

    /**
     * 获取支付时间
     *
     * @return contract_payment_date - 支付时间
     */
    public Date getContractPaymentDate() {
        return contractPaymentDate;
    }

    /**
     * 设置支付时间
     *
     * @param contractPaymentDate 支付时间
     */
    public void setContractPaymentDate(Date contractPaymentDate) {
        this.contractPaymentDate = contractPaymentDate;
    }

    /**
     * 获取状态 0存在1删除
     *
     * @return payment_status - 状态 0存在1删除
     */
    public Integer getPaymentStatus() {
        return paymentStatus;
    }

    /**
     * 设置状态 0存在1删除
     *
     * @param paymentStatus 状态 0存在1删除
     */
    public void setPaymentStatus(Integer paymentStatus) {
        this.paymentStatus = paymentStatus;
    }
}